package com.ruoyi.tranShort.mapper;

import java.util.List;

import com.ruoyi.tranShort.domain.ShortPerson;
import com.ruoyi.tranShort.domain.ShortSchedulingPerson;

/**
 * 排班明细人员Mapper接口
 * 
 * @author ruoyi
 * @date 2021-08-14
 */
public interface ShortSchedulingPersonMapper 
{
    /**
     * 查询排班明细人员
     * 
     * @param id 排班明细人员主键
     * @return 排班明细人员
     */
    public ShortSchedulingPerson selectShortSchedulingPersonById(Long id);

    /**
     * 查询排班明细人员列表
     * 
     * @param shortSchedulingPerson 排班明细人员
     * @return 排班明细人员集合
     */
    public List<ShortSchedulingPerson> selectShortSchedulingPersonList(ShortSchedulingPerson shortSchedulingPerson);

    /**
     * 根据SchedulingDetailId查询
     * @param id
     * @return
     */
    ShortPerson selectShortSchedulingPersonAndPersonBySchedulingDetailId(Long id);

    /**
     * 新增排班明细人员
     * 
     * @param shortSchedulingPerson 排班明细人员
     * @return 结果
     */
    public int insertShortSchedulingPerson(ShortSchedulingPerson shortSchedulingPerson);

    /**
     * 修改排班明细人员
     * 
     * @param shortSchedulingPerson 排班明细人员
     * @return 结果
     */
    public int updateShortSchedulingPerson(ShortSchedulingPerson shortSchedulingPerson);

    /**
     * 删除排班明细人员
     * 
     * @param id 排班明细人员主键
     * @return 结果
     */
    public int deleteShortSchedulingPersonById(Long id);

    /**
     * 批量删除排班明细人员
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteShortSchedulingPersonByIds(Long[] ids);

    /**
     * 根据detailIds删除
     * @param ids
     * @return
     */
    int deleteShortSchedulingPersonBySchedulingDetailIds(Long[] ids);
}
